package com.gsm.dao;

import com.gsm.po.Course;

import java.util.List;

/**
 * 课程(Course)表数据库访问层
 *
 * @author wjq
 * @since 2020-11-30 03:29:31
 */
public interface CourseDao {

    int insertCourse(Course course);

    int deleteCourseByCourseId(Long courseId);

    int updateCourseByCourseId(Course course);

    Course selectCourseByCourseId(Long courseId);

    List<Course> selectCourseList(Course course);

    List<Course> selectCourseListByChapterId(Long chapterId);

    Integer selectMaxShowOrderByChapterId(Long chapterId);

    int updateCourseShowOrder(List<Long> ids);
}